
import { useState } from "react";
import { getData } from "../Data"
import { useMount } from "ahooks";
import { FlexGrid } from "@grapecity/wijmo.react.grid";
import { Row } from "@grapecity/wijmo.grid";



const WijmoC03 = () => {


    const [Data, setData] = useState()
    useMount(() => { setData(getData(200)) })

    const init = (e) => {
        e.columnHeaders.rows.push(new Row())   //添加页头
        e.columnFooters.rows.push(new Row())   //添加页脚
        e.bottomLeftCells.setCellData(0, 0, 'x')
    }


    if (Data) {
        return (
            <div className='Page'>
                <FlexGrid initialized={init} itemsSource={Data} />
            </div>
        )
    }
}

export default WijmoC03;